package com.at.bigdata.spark.core.test

/**
 *
 * @author cdhuangchao3
 * @date 2023/3/18 10:38 AM
 */
class Task extends Serializable {

  var datas: List[Int] = List(1, 2, 3, 4)

  //  val logic = (num:Int) => {num * 2}
  val logic: (Int) => Int = _ * 2

  def compute() = {
    datas.map(logic)
  }


}
